package com.shark.lib.rebirth;

import android.app.Service;

public class RebirthEnvConfigs {

    final Config PERSISTENT_CONFIG;
    final Config DAEMON_ASSISTANT_CONFIG;

    public RebirthEnvConfigs(Config persistentConfig, Config daemonAssistantConfig) {
        this.PERSISTENT_CONFIG = persistentConfig;
        this.DAEMON_ASSISTANT_CONFIG = daemonAssistantConfig;
    }

    public RebirthEnvConfigs(Config persistentConfig) {
        this.PERSISTENT_CONFIG = persistentConfig;
        this.DAEMON_ASSISTANT_CONFIG = new Config("android.process.daemon", WatchDogService.class);
    }

    public static class Config {

        final String processName;
        final Class<? extends Service> serviceClass;

        public Config(String processName, Class<? extends Service> serviceClass) {
            this.processName = processName;
            this.serviceClass = serviceClass;
        }
    }

}
